				
				<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
				<%@ taglib  prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
				<%@ page contentType="text/html; charset=UTF-8" %>
				<%@page import="br.com.locanet.bean.impl.Funcionario"%>
				<%@page import="br.com.locanet.bean.impl.Cliente"%>
				<div id="sidebar">
					<ul>
						<li>
	 						<c:choose>
								<c:when test="${ isCliente || isFuncionario }">
									<form action="login@delete.action" method="post">
										<fmt:message key="locanet.menuLateral.bemVindo"/>, <c:out value="${isCliente?sessionScope.cliente.nome:isFuncionario?sessionScope.funcionario.nome:''}" /><br/>
										<input id="login-submit" type="submit" value="Logout" />
									</form>
								</c:when>
								<c:otherwise>
									<form  action="login@select.action" method="post">
										<input maxlength="20" type="text" name="entity.login" value="<fmt:message key="locanet.pessoa.login" />" onfocus="if (this.value=='<fmt:message key="locanet.pessoa.login" />') this.value='';" onblur="if (this.value=='') this.value='<fmt:message key="locanet.pessoa.login" />'"/>
										<input maxlength="20" type="password" name="entity.senha" value="<fmt:message key="locanet.pessoa.senha" />" onfocus="if (this.value=='<fmt:message key="locanet.pessoa.senha" />') this.value='';" onblur="if (this.value=='') this.value='<fmt:message key="locanet.pessoa.senha" />'"/>
										<br/>
										<input type="radio" name="tipoLogin" value="cliente" checked="checked"/><fmt:message key="locanet.tipo.cliente"/>
										<input type="radio" name="tipoLogin" value="funcionario" /><fmt:message key="locanet.tipo.funcionario"/><br/>
										<input id="login-submit" type="submit" value="Logar"/><br/>
										<fmt:message key="locanet.menuLateral.naoCadastrado"/> <a href="cliente@insert.action" ><fmt:message key="locanet.menuLateral.aqui"/></a>!
									</form>
								</c:otherwise>
	 						</c:choose>
						</li>
						<li>
							<h2><fmt:message key="locanet.filmes"/></h2>
							<ul>
								<li><a href="filme@select.action"><fmt:message key="locanet.menuLateral.procurar"/></a></li>
							<c:if test="${ isFuncionario }" >
								<li><a href="filme@insert.action"><fmt:message key="locanet.butoes.cadastrar"/></a></li>
								<li><a href="copiaFilme@select.action"><fmt:message key="locanet.menu.copiaFilmes"/></a></li>
							</c:if>
							</ul>
						</li>
					<c:if test="${ isCliente || isFuncionario }" ><li>
						<h2><fmt:message key="locanet.menuLateral.locacoes"/></h2>
						<ul>
							<li><a href="locacao@show.action"><fmt:message key="locanet.menu.carrinho"/></a></li>
							<c:if test="${ isCliente || isFuncionario }">
								<li><a href="locacao@select.action"><fmt:message key="locanet.menuLateral.listar"/></a></li>
							</c:if>
							<c:if test="${isFuncionario}" >
								<li><a href="locacao@top10Copias.action"><fmt:message key="locanet.menuLateral.top10Copias"/></a></li>
							</c:if>
						</ul>
					</li>
					<li>
						<h2><fmt:message key="locanet.menuLateral.pessoal"/></h2>
						<ul>
							<li><a href="login@update.action"><fmt:message key="locanet.menuLateral.alteraDados"/></a></li>
						</ul>
					</li></c:if>
					<c:if test="${ isFuncionario }" ><li>
						<h2><fmt:message key="locanet.menuLateral.gerencia"/></h2>
						<ul>
							<li><a href="cliente@select.action"><fmt:message key="locanet.menuLateral.clientes"/></a></li>
							<li><a href="funcionario@select.action"><fmt:message key="locanet.menuLateral.funcionarios"/></a></li>
							<li><a href="estiloFilme@select.action"><fmt:message key="locanet.menuLateral.estiloFilmes"/></a></li>
							<li><a href="imagem@select.action"><fmt:message key="locanet.menuLateral.imagens"/></a></li>
							<li><a href="propriedade@update.action"><fmt:message key="locanet.menu.configuracoes"/></a></li>
						</ul>
					</li></c:if>
					</ul>
				</div>
				<!-- end #sidebar -->